home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17184 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  37 lines

  1. Path: news.th-darmstadt.de!news
  2. From: enno@inferenzsysteme.informatik.th-darmstadt.de (Enno Sandner)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: int::~int()
  5. Date: 14 Apr 1996 10:10:29 +0200
  6. Organization: Fachbereich Informatik, TH Darmstadt
  7. Sender: enno@kitz.inferenzsysteme.informatik.th-darmstadt.de
  8. Message-ID: <ltlojzns3u.fsf@kitz.inferenzsysteme.informatik.th-darmstadt.de>
  9. References: <317083F7.116E@public.sta.net.cn>
  10. NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
  11. In-reply-to: Xu Yifeng's message of Sun, 14 Apr 1996 13:49:59 +0900
  12. X-Newsreader: Gnus v5.1
  13.  
  14. In article <317083F7.116E@public.sta.net.cn> Xu Yifeng <jafd@public.sta.net.cn> writes:
  15.  
  16.    Hi everybody,
  17.  
  18.    can your compiler compile following program?
  19.  
  20.    //------------------------
  21.    void main()
  22.    {
  23.     int i = 0;
  24.  
  25.     i.int::~int();
  26.    }
  27.    //------------------------
  28.  
  29.    is it a legal C++ program?
  30.  
  31. It's legal C++ (check out DWP 12.4:12) and e.g. g++2.6.3
  32. compiles this code without any problems.
  33. The explicit invocation of the int-dtor has no effect.
  34.  
  35.         Enno
  36.  
  37.